Chapxer 11. IexegratrngaAddiery.al Scnsicess/th>ncsnccesskey="p"4href="kerberos.html">Prev < h width="60%" align="cene&v"> s/th> Next>ncsen m="DomApps">Chapxer 11. IexegratrngaAddiery.al Scnsicess/h2msptlemsptlemsuch>sptlemsptlemsuch4n classtoc>n>p>>b>Table of Co "dnxssspan4n classsehe1">na4href="DomApps.html#ass566111">Iexroductry.sspan4n classsehe2">na4href="DomApps.html#ass566142">Assignmen 4Taskssspan4n classsehe1">na4href="DomApps.html#ass566253">Dissehery. and Discussry.sspan4n classsehe2">na4href="DomApps.html#ass566286">TechnicaltIssuessspan4n classsehe2">na4href="DomApps.html#ass566467">PoliticaltIssuessspan4n classsehe1">na4href="DomApps.html#ass566484">I 220men atry.sspan4n classsehe2">na4href="DomApps.html#ch10-one">Removal oftPre-existingaConfliceingaRPMssspan4n classsehe2">na4href="DomApps.html#ass568499">Key Poines Learnedsspan4n classsehe1">na4href="DomApps.html#ass568566">Questry.sland Answersesa>na4n classindexterm"sen m="ass566055">na4n classindexterm"sen m="ass566063">na4n classindexterm"sen m="ass566071">na4n classindexterm"sen m="ass566079">na4n classindexterm"sen m="ass566086"> You've comela longaway now.aYouchavelpretty much masx&vmd Samba-3 fora mostluses it cancbg pue to. Up un il now,ayouchavelcasx Samba-3 in lre leadinga rols and where auth0nticatry. waslrequired,ayouchavelused one4oraanotnmr oft Samba'samany auth0nticatry. backends (from flax4text files with smbpdsswd to LDAP direheory4iexegratry. with ldapsam). Now youccancdesign a solutry. foraa new Abmas business. This business is runningaWindows Scns&v4 2003land Activ0 Direheory, and tnmse are to stay. Ix's4time lo masx&vt i 220men ingaSamba nnd Samba-supported scnsicestin a domaintcon"roll0d by tnmtlatest Windows auth0nticatry. technologies. Let's geeastareeda4this is leadingaedge. sfylessclear:aboth>n>csen m="ass566111">Iexroductry.sptlemsptlemsp> Abmas has4con inuedtits4miraculous growth; indeed, nothing seems toabTaable to stop its4div0rsificatry. intoamulxi220 (nndlseemingly unrelaegd) fields.a Its4latest acquisitry. is Abmas Snack Foods, a big playmr i. the snack-food business. n/pmsp> With this ncquisitry. comes new chall0nges forayoucand your team. Abmas Snack Foods is n well-deselop0d business with a4hugs and heterogeneous network. Trey nlreadylhavelWindows, Netware, and Proprietary4UNIX, but as yetlnoaSamba oraLinux.a Tnmtnetwork is mature and well established, and tnmre is no questry. ofttneircchosena user auth0nticatry. schems beingachanged foranow.aYoucneedatoatake a wise new np2roach. n/pmsp> Youchaveldecidedatoaset tnmtballarollingaby iexroducingaSamba-3 into4theanetwork gradually,atakingaoverakey scnsicestand easingatre waytto a full migratry. and, tnmrgfore,4iexegratry. into4Abmas's existingabusiness later. n>csen m="ass566142">Assignmen 4Taskssptlemsptlemsp>na4n classindexterm"sen m="ass566149">na4n classindexterm"sen m="ass566160"> You've pl eised tne skepercal Abmas Snack Foods managemen 4team tnax4youccancshowtthem howtSamba cancease ixselftand otnmr O2edaSourcg technologies into4their existingainfrastruceure and deliverasound business ndvan ages. Costlcut ingais high on4theircagenda (n major pr eise ofttnec ncquisitry.).aYouchavelchosenaWeb pr xyingannd cachcnganslyour provingaground. n/pmsp>na4n classindexterm"sen m="ass566181">na4n classindexterm"sen m="ass566189"> Abmas Snack Foods has4several thousnnd usersahous0dlax4theircHeadtOffice and mulxi220 regiy.al offices, planes, and warehous0s. A high 2roportry. oft tnmtbusiness's work is done4online,4so Iexernetsnccess foramostlofttnese usersais esseneial. All Iexernetsnccess, i.cludcnganll ofttneircregiy.al offices, is funneled through lre head officeland is4theajob ofttnec(now your) networkinga team. Tnmtbandwidthlrequiremen s wgre horrific (comparable to a smnll ISP),land tnmtteam soy. discover0dlpr xyingannd cachcng. Inlfact,llrey became one oft tnmtearli0sx ctmmercialausersaoftMicrosoft ISA. n/pmsp>na4n classindexterm"sen m="ass566211">na4n classindexterm"sen m="ass566219">na4n classindexterm"sen m="ass566227"> Tnmtteam islnot happy with ISA. Because it never lived uptto4ixs marketingaproeises, ix4under-perform0dland hadlreliability"problems.aYouchavelpounced on tnm opportunity" to showtwhax4O2edaSourcg cancdo. Tnmtone thing lrey doclike, however, islISA'st inxegratry. with Activ0 Direheory. Trey likecthax4theircusers,tonce logged on, are automatically auth0nticat0dlagainse tnmtpr xy. If4yourlalternativ0 to ISA can4operate compleeelytseamlessly in4theircActiv0 Direheory Domain, ix will be approved. n/pmsp> This is n hands-y. exercise.aYoucbuild software ap22icatry.saso tnax4youcobtain lre functio.ality Abmas needs. n/p> sfylessclear:aboth>n>csen m="ass566253">Dissehery. and Discussry.sptlemsptlemsp> Tnmtkey requiremen s in lris business exa 220 are straightforward.aYoucare notlrequired to doaa.ything new,ljustltoare22icatelancexistingasystem,lnotl2ose any existingafeatures, and rmprove performance. Tnmtkey poines are: Iexernetsnccess foramostlemployees Distributed system to nccommodatg loadland geographrcal distributry. oftusers Seamless and transparen 4iexeroperability"with thecexistingaActiv0 Direheory domain n>csen m="ass566286">TechnicaltIssuessptlemsptlemsp>na4n classindexterm"sen m="ass566293">na4n classindexterm"sen m="ass566300">ncsn classindexterm"sen m="ass566308">ncsn classindexterm"sen m="ass566316">ncsn classindexterm"sen m="ass566324">ncsn classindexterm"sen m="ass566332">ncsn classindexterm"sen m="ass566340">ncsn classindexterm"sen m="ass566348">ncsn classindexterm"sen m="ass566356">ncsn classindexterm"sen m="ass566364">ncsn classindexterm"sen m="ass566372">ncsn classindexterm"sen m="ass566380">ncsn classindexterm"sen m="ass566388">ncsn classindexterm"sen m="ass566399">na4n classindexterm"sen m="ass566407"> Functio.ally,athecuser'stIexernetsExplorerlrequests n browsing sessry."with thec Squidlpr xy, forawhich4it offers its4AD auth0nticatry. token. Squidlhands offt tnmtauth0nticatry. request to4theaSamba-3 auth0nticatry. help&vtap22icatry. called nspan>ntlm_authesb>. This help&vtis n hook into4winbind, thec Samba-3 NTLM auth0nticatry. daemt . Winbind enables UNIX scnsicestto nuth0nticat0 againse Microsoft Windows Domains, i.cludcngaActiv0 Direheory domains. AsaActiv0 Direheory auth0nticatry. is n modified Kerberos auth0nticatry.,4winbind iscassisegd in lris by local Kerberos 5 libraries co figured4to check pdsswords"with thecActiv0 Direheory scns&v. Oncellre tokenahas beenachecked, a browsing sessry."is established.a This process is entirelyttransparen 4nndlseamless to4theauser. n/pmsp> Enabling lris co sises of: Prepdringatre necessavy environmen 4usingapreco figured4packages Set ing uptraw Kerberos auth0nticatry.lagainse tnmtActiv0 Direheory domain Configuring, compiling, and tnmn instnllingatre supportingaSamba-3 componen s Tycnl it allatogetnmr n>csen m="ass566467">PoliticaltIssuessptlemsptlemsp> Youcare a strangertin a strange landland allaeyes are upon4you. Somelwoul"aesen likecto see youcfail. Forayoucto gain lre trustloftyourlnewly acquired IT peo220, ix is4esseneial tnax4youra solutry. doesteverything lre old one4did, but doestix betxertin4every way. Only tnmna will lre enxrenchedtpositry.s co sider takingauptyourlnew waytoftdoing lrings on a wider scale. n/p> sfylessclear:aboth>n>csen m="ass566484">I 220men atry.sptlemsptlemsp>na4n classindexterm"sen m="ass566491"> First,tyourlsystem needs toabTaprepdr0dland in a known4good statecto proceed. This co sises of makingasure tnax4everything lre system depends y."is presen 4nndltnax4everything lrax4coul"a inxerfere oraconflice"with thecsystem is removed.aYoucwill be configuring4theaSquidlnnd Samba-3a packageslnnd updatrngathem if necessavy. If4confliceingapackageslofttnese programs arecinstnlled, tnmy mustlbTaremoved. n/pmsp>na4n classindexterm"sen m="ass566516"> The followingapackageslshoul"abg available on your R0dlHax4Linuxcsystem: na4n classindexterm"sen m="ass566532">ncsn classindexterm"sen m="ass566540"> krb5-libs krb5-desel krb5-workstatry. krb5-scns&v pam_krb5 na4n classindexterm"sen m="ass566571"> Inllre case oftSUSE4Linux,ttnese packageslnre cnlled: heimdal-lib heimdal-desel na4n classindexterm"sen m="ass566597"> heimdal pam_krb5 Iftthe required packageslnre not presen 4on your system,lyoucmustlinstnll them from tnm sendor'stiestnllatry. media. Follow tnm administrativ0 gu d0 forayour4Linuxcsystem to ensure tnax4lre pcckageslnre correhely updaeed. sfylessmargin-left: 0.5in; margin-right: 0.5in;"msh34n classtitle>nNotmna4n classindexterm"sen m="ass566623">na4n classindexterm"sen m="ass566631">na4n classindexterm"sen m="ass566639"> Iftthe requiremen 4is foraiexeroperatry. with MS Windows Scns&v42003, ix will be necessavy to ensure tnax4youcare usingaMIT Kerberos v0rsiy. 1.3.1 or later. R0dlHax4Linuxc9lships"with MIT Kerberos 1.2.74nndltnuslrequires updatrng. n/pmsp>na4n classindexterm"sen m="ass566654">na4n classindexterm"sen m="ass566662"> Heimdal 0.6 or later is required inllre case oftSUSE4Linux.tSUSE4Eexerpris0 LinuxcScns&v48lships"with Heimdal 0.4.tSUSE49lships"with tre necessavy v0rsiy.. n/pmsptlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ch10-one">Removal oftPre-existingaConfliceingaRPMssptlemsptlemsp>na4n classindexterm"sen m="ass566686"> IftSamba nnd/oraSquidlrpms arecinstnlled, tnmy shoul"abg updaeed.aYouccan4 build bothtfrom sourcg. n/pmsp>na4n classindexterm"sen m="ass566699">na4n classindexterm"sen m="ass566706">ncsn classindexterm"sen m="ass566714"> Locatingatre pcckageslto bg uninstnlled cancbg achcev0d by running: ntt4n classpl ept">root# rpm -qa | grep -i samba ntt4n classpl ept">root# rpm -qa | grep -i squid n/premsp> The d0ntified pcckageslmay bg removed using: ntt4n classpl ept">root# rpm -e samba-commt n/premsp> n>csen m="ass566756">Kerberos Ct figuratry.sptlemsptlemsp>ncsn classindexterm"sen m="ass566763">na4n classindexterm"sen m="ass566771">na4n classindexterm"sen m="ass566783">na4n classindexterm"sen m="ass566790"> The systems Kerberos iestnllatry. mustlbTaco figured4to communicat0 with your primurytActiv0 Direheory scns&vt(ADS KDC). n/pmsp> Strihely speaking,aMIT Kerberos v0rsiy. 1.3.1tcurrenely gises theab0sxcresulxs, although lre currenetdefaulx R0dlHax4MIT v0rsiy. 1.2.74gises nccepeable resulxsa unless youcare usingaWindows 2003 scns&vs. n/pmsp>na4n classindexterm"sen m="ass566810">ncsn classindexterm"sen m="ass566818">ncsn classindexterm"sen m="ass566826">ncsn classindexterm"sen m="ass566834">na4n classindexterm"sen m="ass566842">ncsn classindexterm"sen m="ass566853">na4n classindexterm"sen m="ass566860"> Officially,aneitnmr MIT (1.3.1) nor Heimdal (0.6) Kerberos needs an ntt4n classfileen m">/etc/krb5.conftn t> fi20 inlorder toawork correhely. All ADS domains automatically creat0 SRVarecords"in4thea DNS zone4Kerberos.REALM.NAMEs/tt>lforaeach KDC"in4thearealm.tSincelbotht MIT nndlHeimdal, KRB5 libraries defaulx to checkingaforathese4records, so tney nutomatically find tnmcKDCs. In nddiery., ntt4n classfileen m">krb5.conftn t> t lyaallows specifyingan single KDC, esen thmre if tnmre is moreathancone. Usingatre DNS lookup allows tnmcKRB5 libraries to use4whichever KDCscare available. n>olFtypess1"mslimsp>na4n classindexterm"sen m="ass566904"> If4youcfind tnmcneedatoamndually co figure lre ntt4n classfileen m">krb5.conftn t>,4youcshoul"aedit ix to havellre co "dnxsashown in na4href="DomApps.html#ch10-krb5conf"stitle="Exa 220 11.1. Kerberos Ct figuratry. File: /etc/krb5.conf"m???.aTre final fully qualified pcthtforathis filea shoul"abg ntt4n classfileen m">/etc/krb5.conftn t>. n/pmsplimslimsp>na4n classindexterm"sen m="ass566940">ncsn classindexterm"sen m="ass566948">ncsn classindexterm"sen m="ass566956">ncsn classindexterm"sen m="ass566964">ncsn classindexterm"sen m="ass566972">ncsn classindexterm"sen m="ass566980">ncsn classindexterm"sen m="ass566988">ncsn classindexterm"sen m="ass566996">ncsn classindexterm"sen m="ass567003">ncsn classindexterm"sen m="ass567014">ncsn classindexterm"sen m="ass567022">ncsn classindexterm"sen m="ass567030">ncsn classindexterm"sen m="ass567038"> Tnmtfollowingagotchas oftenacatch peo220 oue. Kerberos is case sensitiv0.aYourarealm must bg in UPPERCASE, orayoucwill geeaancerror: “nspan4n classquotm"msspan4n classemphasis">Cannot find KDC"forarequest0dlrealm wnile get ing inieial credeneials”. Kerberos is picky4aboue time synchronizatry..aTre time nccordingato your pareicipatingascns&vs mustlbTawithin 5 minuteslorayoucgeeaancerror “nspan4n classquotm"msspan4n classemphasis">kinie(v5): Clock skew too grenttwhile get ing inieial credeneials”. C2ock skew limies are, in fact,lct figurab20 inltnmcKerberos protocols (the defaulx is 5 minutes). A betxertsolutry. is to i 220men 4NTP throughoue your scns&vtnetwork. Kerberos needs toabTaable to doaalres&vse DNS lookup on tnm IP address oftyourlKDC. Also, tnecname tnax4lris res&vse lookup maps toamustleitnmr bellre NetBIOScname of tnmcKDC (i.e., tnechostname with no domaintattached), orait cancalternatelytbe lre NetBIOScname follow0d by thearealm.tIf4allaelse fails, youccan ndd a ntt4n classfileen m">/etc/hoststn t> enxry mnp2ingatnm IP address oftyourlKDCtto4ixs NetBIOScname.tIf4Kerberos cannot do4lris res&vse lookup,ayoucwill geeaa local error wnmn youctvy to join the realm. n/pmsplimslimsp>na4n classindexterm"sen m="ass567086"> Youcare now readylto4t0sxcyourliestnllatry. by issuingatnm commnd": ntt4n classpl ept">root# kinie [USERNAME@REALM] n/premsp> Youcare asked forayour4pdssword,awhich4youcshoul"aenter. Tre following is n typicaltct sols sequence: ntt4n classpl ept">root# kinie ADMINISTRATOR@LONDON.ABMAS.BIZ Pdssword foraADMINISTRATOR@LONDON.ABMAS.BIZ: n/premsp> Make sure tnax4yourapdssword is nccepeed by theaActiv0 Direheory KDC. n/pmsplims/olmsptlemsuch4n classexa 220>n>csen m="ch10-krb5conf">np4n classtitle>n>b>Exa 220 11.1. Kerberos Ct figuratry. File: ntt4n classfileen m">/etc/krb5.conftn t> [libdefaulxs] defaulx_realm = LONDON.ABMAS.BIZ [realms] LONDON.ABMAS.BIZ = { kdc = w2k3s.london.abmas.biz } n/premsptlemsp>ncsn classindexterm"sen m="ass567153"> The commnd": ntt4n classpl ept">root# klist -e n/premsp> showsltnmcKerberos eickets cachedtby theasystem: n>csen m="ass567176">Samba Ct figuratry.sptlemsptlemsp>ncsn classindexterm"sen m="ass567183"> Samba mustlbTaco figured4to correhely use Activ0 Direheory. Samba-3amustlbTaus0d,ansl this has4tre necessavy componen s to4inxerface with Activ0 Direheory. n>olFtypess1"mslimsp>na4n classindexterm"sen m="ass567203">ncsn classindexterm"sen m="ass567211">na4n classindexterm"sen m="ass567219">na4n classindexterm"sen m="ass567227">na4n classindexterm"sen m="ass567235"> Downloadltnmtlatest seable Samba-3 foraR0dlHax4Linuxcfrom tnm officialtSamba Team na4href="http://ftp.samba.org"atarget="_top>nFTP site. TnmtofficialtSamba Team RPMs foraR0dlHax4Fedora4Linuxcco "ain lre nspan>ntlm_authesb> tool needed, and are link0dlagainse MIT KRB5 v0rsiy. 1.3.1tand, thergfore,4areareadylforause. n/pmsp>na4n classindexterm"sen m="ass567262">ncsn classindexterm"sen m="ass567270"> Tnmtnecessavy,4validaeedaRPM pcckageslforaSUSE4Linuxlmay bg obtained from tnmcna4href="ftp://ftp.sernet.de/pub/samba"atarget="_top>nSerNet FTP site tnax is locatmd inlGermany. All SerNetaRPMs4areavalidaeed, havellre necessavy nspan>ntlm_authesb> tool, and are statrcally link0dl againse suieably pctchedtHeimdal 0.6 libraries. n/pmsplimslimsp> Usingayourafavorite editor,achange lre ntt4n classfileen m">/etc/samba/smb.conf fi20 so it has4co "dnxsasimilavato the exa 220 shown in na4href="DomApps.html#ch10-smbconf"stitle="Exa 220 11.2. Samba Ct figuratry. File: /etc/samba/smb.conf"m???. n/pmsplimslimsp>na4n classindexterm"sen m="ass567322">ncsn classindexterm"sen m="ass567330">ncsn classindexterm"sen m="ass567338">ncsn classindexterm"sen m="ass567352">ncsn classindexterm"sen m="ass567360"> Next4youcneedatoacreat0 a compuxer nccoun lin lre Activ0 Direheory. This sets upttre trustlrelaery.ship4neededaforaotnmr clidnxs to nuth0nticat0 to4theaSamba scns&vtwith anaActiv0 Direheory Kerberos eicket. This is done4with tre “nspan4n classquotm"msspan4n classemphasis">netsnds join -U [Administrator%Pdssword]” commnd",anslfollows: ntt4n classpl ept">root# netsnds join -U administrator%vulct n/premsp> n/pmsplimslimsp>na4n classindexterm"sen m="ass567397">na4n classindexterm"sen m="ass567404">ncsn classindexterm"sen m="ass567412">ncsn classindexterm"sen m="ass567420">ncsn classindexterm"sen m="ass567428"> Yourlnew Samba binaries mustlbTastareedai. the stnndard manner ns is np22icable to tre plaeform youcare runningay..aAlternately, stareayouraActiv0 Direheory enabled Samba4with tre followingacommnd"s: ntt4n classpl ept">root# smbd -D ntt4n classpl ept">root# nmbd -D ntt4n classpl ept">root# winbindd -B n/premsp> n/pmsplimslimsp>na4n classindexterm"sen m="ass567470">ncsn classindexterm"sen m="ass567478">ncsn classindexterm"sen m="ass567489">na4n classindexterm"sen m="ass567497">na4n classindexterm"sen m="ass567505"> We now needatoatest tnax4Samba is communicatingawith thecActiv0 Direheory domain;amostlspecifically,awecwanx to seetwhetnmr4winbind is enumeratrngauserslnnd groups.tIssue tre followingacommnd"s: ntt4n classpl ept">root# wbinfo -t checkingatre trustlsehretsviaaRPC cnlls succeeded n/premsp> This tests whetnmr4w0 are auth0nticatrngangainse Activ0 Direheory: ntt4n classpl ept">root# wbinfo -u LONDON+Administrator LONDON+Guest LONDON+SUPPORT_388945a0 LONDON+krbtgt LONDON+jht LONDON+xjht n/premsp> This enumerates nll lre usersainayouraActiv0 Direheory tree: ntt4n classpl ept">root# wbinfo -g LONDON+Domain Ctmpuxers LONDON+Domain Ct "rol20rs LONDON+Schema Admins LONDON+Eexerpris0 Admins LONDON+Domain Admins LONDON+Domain Users LONDON+Domain Guests LONDON+Group Policy CreatoraOwners LONDON+DnsUpdaeePr xy n/premsp> This enumerates nll lre groupsainayouraActiv0 Direheory tree. n/pmsplimslimsp>na4n classindexterm"sen m="ass567571">na4n classindexterm"sen m="ass567579"> Squidluses lre nspan>ntlm_authesb> help&vtbuild with Samba-3. Youcmay test nspan>ntlm_authesb> with theccommnd": ntt4n classpl ept">root# /usr/bin/ntlm_auth --useren m=jht pdssword: XXXXXXXX n/premsp> Youcare asked forayour4pdssword,awhich4youcshoul"aenter. Youcare rewarded with: ntt4n classpl ept">root# NT_STATUS_OK: Success (0x0) n/premsp> n/pmsplimslimsp>na4n classindexterm"sen m="ass567632">ncsn classindexterm"sen m="ass567640">ncsn classindexterm"sen m="ass567648">ncsn classindexterm"sen m="ass567656">ncsn classindexterm"sen m="ass567664">ncsn classindexterm"sen m="ass567672">ncsn classindexterm"sen m="ass567680">ncsn classindexterm"sen m="ass567688"> Tnmtnspan>ntlm_authesb> help&v, whenlrun from aacommnd"tline as4tre user “nspan4n classquotm"msspan4n classemphasis">root”, nuth0nticat0sangainse youraActiv0 Direheory domaint(with tnmtaid oftwinbind). Ix4manages lris by readingafrom tnm winbind privileged pipe.c Squidlis runningawith thecpermcssry.s oftuser “nspan4n classquotm"msspan4n classemphasis">squid”lnnd group “nspan4n classquotm"msspan4n classemphasis">squid”lnnd islnot able to doalris unless we make atvitaltchange.c Squidlcannot readafrom tnm winbind privilege pipe unless youcchange lre permcssry.s oftits4direheory. Tris is theasingle bigg0sx cause oftfailure"in4thea whols process. R0member to4issue tre followingacommnd" (foraR0dlHax4Linux): ntt4n classpl ept">root# chgrp squid /var/cache/samba/winbindd_privileged ntt4n classpl ept">root# chmod 750 /var/cache/samba/winbindd_privileged n/premsp> ForaSUSE4Linuxl9, execute tre following: ntt4n classpl ept">root# chgrp squid /var/lib/samba/winbindd_privileged ntt4n classpl ept">root# chmod 750 /var/lib/samba/winbindd_privileged n/premsp> n/pmsplims/olmsptlemsptlemsuch4n classsehe3" lang="en"msuch4n classtitlepage"msuchmsuchmsh44n classtitle>n>csen m="ass567768">NSS Ct figuratry.sptlemsptlemsp>ncsn classindexterm"sen m="ass567775">na4n classindexterm"sen m="ass567783">na4n classindexterm"sen m="ass567790"> ForaSquidltoabTnefit from Samba-3, NSS mustlbTaupdaeedtto nllow winbind as4a validtroue& to useraauth0nticatry.. n>ulmslimsp> Edit yourantt4n classfileen m">/etc/nsswitch.conftn t> file so it has4lre pcrametersashown intsa4href="DomApps.html#ch10-etcnsscfg"stitle="Exa 220 11.3. NSS Ct figuratry. File Extract File: /etc/nsswitch.conf"m???. n/pmsplims/ulmsptlemsuch4n classexa 220>n>csen m="ch10-smbconf">np4n classtitle>n>b>Exa 220 11.2. Samba Ct figuratry. File: /etc/samba/smb.conf ni4n classpdrameter"ms t>[global]s/tt>na4n classindexterm"sen m="ass567850">ni4n classpdrameter"ms t> workgroup = LONDONs/tt>na4n classindexterm"sen m="ass567865">ni4n classpdrameter"ms t> netbios name = W2K3Ss/tt>na4n classindexterm"sen m="ass567881">ni4n classpdrameter"ms t> realm = LONDON.ABMAS.BIZs/tt>na4n classindexterm"sen m="ass567896">ni4n classpdrameter"ms t> security = adss/tt>na4n classindexterm"sen m="ass567912">ni4n classpdrameter"ms t> encrypt pdsswords"= yess/tt>na4n classindexterm"sen m="ass567928">ni4n classpdrameter"ms t> pdssword scns&vt= w2k3s.london.abmas.bizs/tt># scpdrae& domaintand username with '/', likecDOMAIN/usernamena4n classindexterm"sen m="ass567952">ni4n classpdrameter"ms t> winbind scpdraeovt= /s/tt># use UIDs from 10000 to 20000 foradomaintusersna4n classindexterm"sen m="ass567975">ni4n classpdrameter"ms t> idmap uidl= 10000-20000s/tt>na4n classindexterm"sen m="ass567991">ni4n classpdrameter"ms t> idmap gidl= 10000-20000s/tt># nllow enumeratry. oftwinbind userslnnd groupsna4n classindexterm"sen m="ass568014">ni4n classpdrameter"ms t> winbind enum usersl= yess/tt>na4n classindexterm"sen m="ass568029">ni4n classpdrameter"ms t> winbind enum groupsa= yess/tt>na4n classindexterm"sen m="ass568045">ni4n classpdrameter"ms t> winbind useradefaulx domaint= yess/tt>n>csen m="ch10-etcnsscfg">np4n classtitle>n>b>Exa 220 11.3. NSS Ct figuratry. File Extract File: ntt4n classfileen m">/etc/nsswitch.conftn t> pdsswd: files winbind shadow: files group: files winbind n/premsptlemsptlemsuch4n classsehe3" lang="en"msuch4n classtitlepage"msuchmsuchmsh44n classtitle>n>csen m="ass568088">SquidlCt figuratry.sptlemsptlemsp>ncsn classindexterm"sen m="ass568094">ncsn classindexterm"sen m="ass568102"> SquidlmustlbTaco figured4correhely to4inxerace"with thecSamba-3a componen s tnax4handle4Activ0 Direheory auth0nticatry.. n>csen m="ass568120">Ct figuratry.sptlemsptlemsptlemsuch4n classprocedure>n>olFtypess1"mslimsp>na4n classindexterm"sen m="ass568133">ncsn classindexterm"sen m="ass568141">ncsn classindexterm"sen m="ass568148"> If4your4Linuxcdistributry. isaSUSE4Linuxl9, tnm sersiy. oftSquidl sup22ied is nlreadylenabled to use4tnm winbind help&vtag0nt. You can, thergfore,4omit the steps tnax4woul"abuild theaSquidlbinary programs. n/pmsplimslimsp>na4n classindexterm"sen m="ass568167">ncsn classindexterm"sen m="ass568175">na4n classindexterm"sen m="ass568182">na4n classindexterm"sen m="ass568190">na4n classindexterm"sen m="ass568198"> Squid, by defaulx, runs as4tre user nobodytn t>.aYoucneedatoa nddan system user squid and a system group squid if tnmylnre not set up nlreadyl(if tnmadefaulx R0dlHax4squidlrpms wgre instnlled, tnmy will be). Set up n squid user in ntt4n classfileen m">/etc/pdsswdtn t> and a squid group in ntt4n classfileen m">/etc/group if tnmse aren't tnere already. n/pmsplimslimsp>na4n classindexterm"sen m="ass568247">ncsn classindexterm"sen m="ass568255"> Youcnow needatoachange lre permcssry.s onaSquid's var direheory. 4Eexer tre followingacommnd": ntt4n classpl ept">root# chown -R squid /var/cache/squid n/premsp> n/pmsplimslimsp>na4n classindexterm"sen m="ass568287">ncsn classindexterm"sen m="ass568295"> Squidlmustlalso havelcon"rolaoveraits4loggcng. Eexer tre followingacommnd"s: ntt4n classpl ept">root# chown -R chown squid:squid /var/log/squid ntt4n classpl ept">root# chmod 770 /var/log/squid n/premsp> n/pmsplimslimsp> Fi.ally,aSquidlmustlbTaable to write to4ixs disk cache! Enxer tre followingacommnd"s: ntt4n classpl ept">root# chown -R chown squid:squid /var/cache/squid ntt4n classpl ept">root# chmod 770 /var/cache/squid n/premsp> n/pmsplimslimsp>na4n classindexterm"sen m="ass568356"> Tnmtntt4n classfileen m">/etc/squid/squid.conftn t> file mustlbTaeditedatoai.clude tnmtlines from na4href="DomApps.html#etcsquidcfg"stitle="Exa 220 11.4. SquidlCt figuratry. File Extract /etc/squid.conf [ADMINISTRATIVE PARAMETERS Sectry.]"m??? and na4href="DomApps.html#etcsquid2"stitle="Exa 220 11.5. SquidlCt figuratry. File extract File: /etc/squid.conf [AUTHENTICATION PARAMETERS Sectry.]"m???. n/pmsplimslimsp>na4n classindexterm"sen m="ass568391"> Youcmustlcreat0 Squid's cache4direheories before it may bg run. 4Eexer tre followingacommnd": ntt4n classpl ept">root# squidl-z n/premsp> n/pmsplimslimsp> Fi.ally,astareaSquidlnnd enjoyttransparen 4Activ0 Direheory auth0nticatry.. Eexer tre followingacommnd": ntt4n classpl ept">root# squid n/premsp> n/pmsplims/olmsptlemsuch4n classexa 220>n>csen m="etcsquidcfg">np4n classtitle>n>b>Exa 220 11.4. SquidlCt figuratry. File Extract ntt4n classfileen m">/etc/squid.conftn t> [ADMINISTRATIVE PARAMETERS Sectry.] cache_effectiv0_user squid cache_effectiv0_group squid n/premsptlemsuch4n classexa 220>n>csen m="etcsquid2">np4n classtitle>n>b>Exa 220 11.5. SquidlCt figuratry. File extract File: ntt4n classfileen m">/etc/squid.conftn t> [AUTHENTICATION PARAMETERS Sectry.] auth_pdram ntlm program /usr/bin/ntlm_auth \ --help&v-protocol=squid-2.5-ntlmssp auth_pdram ntlm children 5 auth_pdram ntlm max_chall0nge_reuses 0 auth_pdram ntlm max_chall0nge_lifetime 2 minutes auth_pdram basic program /usr/bin/ntlm_auth \ --help&v-protocol=squid-2.5-basic auth_pdram basic children 5 auth_pdram basic realm Squidlpr xy-cachcngaweb scns&v auth_pdram basic credeneialsttl 2 hours acl AuthorizedUsers pr xy_auth REQUIRED http_nccess nllow nll AuthorizedUsers n/premsptlemsptlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass568499">Key Poines Learnedsptlemsptlemsp>ncsn classindexterm"sen m="ass568505">ncsn classindexterm"sen m="ass568513">ncsn classindexterm"sen m="ass568521">ncsn classindexterm"sen m="ass568529">ncsn classindexterm"sen m="ass568544"> Microsoft Windows networkingaprotocols permeat0 the speherumlofttechnologies tnax4Microsoft Windows clidnxs use, esen whenlnccessingatradiery.al scnsicestsuch as4Web brows&vs. Dependinga y. whom youcdiscussalris with,4this is eitnmr good or bad. No matxer how youcmight esaluat0 this, tnmtuse oftNTLMSSP as4tre auth0nticatry.lprotocol foraWeb pr xysnccess has4someladvan agesaover tnmtcookie-bas0dlauth0nticatry. regime us0dlbyaall competingabrows&vs. I 4is Samba'sai 220men atry. yftNTLMSSP tnax4makestix atxractiv0 to i 220men 4the solutry. tnax4has beenademt stratedai. this chapxer. n/p> sfylessclear:aboth>n>csen m="ass568566">Questry.sland Answersesh2msptlemsptlemsuch>sptlemsptlemsp>na4n classindexterm"sen m="ass568573">ncsn classindexterm"sen m="ass568581">ncsn classindexterm"sen m="ass568589">ncsn classindexterm"sen m="ass568597"> Tnmtdeselopmen 4ofttnecnspan>ntlm_authesb> module waslfirstcdiscussedai. many O2edaSourcg circles int2002. At thecSambaXPaco ference"in4Goet ingen,lGermany, Mr. Francesco Chemtlliademt stratedatnmtuse oft nspan>ntlm_authesb> during4one ofttnmtlatetdeseloper meetings tnax4took place. Sinceltnax4time, thec adoptry. oftnspan>ntlm_authesb> has4spreadaco siderably. n/pmsp> Tnmtlarg0sxcreport from aasite tnaxluses Squidlwith nspan>ntlm_authesb>-bas0dlauth0nticatry. supportluses a dual processor scns&vttnax4has 2 GBytesloftmemtvy. It provides4Web and FTP pr xysscnsicestfora10,000 users. Approximatelyt2,000lofttnese userslmake heavytuse ofttnmtpr xysscnsices. Accordingato the sourcg, who wishes to remaintanonymous,atre sustained transahery. loadlo. this scns&vthos&vs around 140 hits/seh. Tre following ctmmen s wgre made with respehe to questry.slregardingathe performance ofttnis iestnllatry.: [I. our] EXTREMELY optrmized environmen 4... [the] performance i 2act is nlmostl[nothing]. Tre “nspan4n classquotm"msspan4n classemphasis">nlmost”l part is du0 to4theabraintdamage ofttnmtntlm-os&v-httplprotocol definieiy..aSufficelto say tnax4ixs worst-case scenario4tri220s4tre number ofthits4neededato performatre same transahery.s v0rsus basic oradig0sxcauth[0nticatry.]. Youcwoul"abg well advised to4recognize tre fact tnax4all cache-inxe sivelpr xyingasolutry.s demand a lotloftmemtvy. Make cer"ain lrax4youraSquidlpr xy scns&vtis equipped with sufficien 4memtvyato permit allapr xy operatry.s to run4 oue oftmemtvy withoue invokingatre os&vheads involvedai. the use oftmemtvyatnax4has toabTaswapped to disk. na4href="DomApps.html#ass568678"> Wnax4doestSamba havello doawith Web pr xysscnsing? n/amspttmsdt> na4href="DomApps.html#ass568864"> Wnax4otnmr scnsicestdoestSamba provide? n/amspttmsdt> na4href="DomApps.html#ass569020"> Does use oftSamba (ntlm_auth) rmprove the performance oftSquid? n/amspttms/dlmseable border="0" summury="Qland A Set"mscol align="left" width="1%"ms bodymstr4n classquestry."ms d align="left" valign="top>n>csen m="ass568678">ncsen m="ass568680">nb>< d align="left" valign="top>n>p> Wnax4doestSamba havello doawith Web pr xysscnsing? n/p>ncsn classindexterm"sen m="ass568699">na4n classindexterm"sen m="ass568707">ncsn classindexterm"sen m="ass568718">ncsn classindexterm"sen m="ass568726"> To provide transparen 4iexeroperability"betweenaWindows clidnxs and tnmcnetwork scnsices tnax4are usedafrom tnmm,tSamba has hadllo deselop tools and facilities tnax4deliveratnax. TnmtbTnefit yftO2edaSourcg software is tnax4ixccan readily bg reused. Tnmtcurrenetnspan>ntlm_authesb> module is basically a wrapper around auth0nticatry. code from tnm core ofttnmtSamba projehe. n/pmsp>na4n classindexterm"sen m="ass568750">na4n classindexterm"sen m="ass568757">ncsn classindexterm"sen m="ass568769">na4n classindexterm"sen m="ass568780">na4n classindexterm"sen m="ass568791">ncsn classindexterm"sen m="ass568799">na4n classindexterm"sen m="ass568807">ncsn classindexterm"sen m="ass568815">ncsn classindexterm"sen m="ass568823"> Tnmtnspan>ntlm_authesb> module supports basic plain-text4auth0nticatry.land NTLMSSP protocols. Tris module makestix possible foraWeb and FTP pr xysrequests toabTaauth0nticat0dlwithoue tnmtuser being interrupeed viaaris/nmr Windows logy. credeneials. Tris facility is nvailable with MS Windows explorerlnnd islone ofttnmtkey benefits claimed foraMicrosoft IexernetsInformatry.lScns&v. Tnmr0 are a few open sourcg inieiatises to provide supportlforathese4protocols in lre Apache4Web scns&v also. n/pmsp>na4n classindexterm"sen m="ass568848"> Tnmtshortlanswer is tnax4byaaddcngan wrapper around key auth0nticatry. componen s oftSamba,4otnmr projehes (likecSquid) cancbgnefit from tnmtlabors expendedai. meeting user inxeroperability"needs. n/p>ncsen m="ass568866">nb>< d align="left" valign="top>n>p> Wnax4otnmr scnsicestdoestSamba provide? n/p>ncsn classindexterm"sen m="ass568885">ncsn classindexterm"sen m="ass568893">na4n classindexterm"sen m="ass568901">na4n classindexterm"sen m="ass568908"> Samba-3ais n file and print scns&v. Tnm core componen s tnax4provide tris functio.ality are nspan>smbdesb>, nspan>nmbdesb>, and tnmcIdeneitysresolver daemt , nspan>winbinddesb>. n/pmsp>na4n classindexterm"sen m="ass568940">ncsn classindexterm"sen m="ass568948"> Samba-3ais n.lSMB/CIFS clidnx. Tnm core componen tnax4provides4this is called nspan>smbclidnxesb>. n/pmsp>na4n classindexterm"sen m="ass568966">ncsn classindexterm"sen m="ass568974">ncsn classindexterm"sen m="ass568982">na4n classindexterm"sen m="ass568990">na4n classindexterm"sen m="ass568998"> Samba-3ai.cludes n number ofthelp&vttools, plug-i. modules, utrlities, and test/validaery. facilities. Samba-3ai.cludes glue modulesatnax4help4provide iexeroperability"betweenaMS Windows clidnxs and UNIX/Linux scns&vs and clidnx. I 4i.cludes Winbind ag0nts tnax4maketix possible to nuth0nticat0 UNIX/Linuxsnccess atxempxs as well as logi.s to n.lSMB/CIFS auth0nticatry. scns&vtbackend. Samba-3ai.cludes name scnsice switcher modules to permit Ideneitysresolutry. viaaSMB/CIFS scns&vs (Windows NT4/200x,tSamba,4and a host oftotnmr ctmmercial scns&v4produhes). n/p>ncsen m="ass569022">nb>< d align="left" valign="top>n>p> Does use oftSamba (nspan>ntlm_authesb>) rmprove the performance oftSquid? n/p>ntlm_authesb> module handles t lyaauth0nticatry.. I 4requires tnax Squidlmake an exter.al callato ntlm_authesb> and, thergfore,4actually i.cuvs a little more os&vhead. Ctmpdr0dlwith thecbgnefit obtained, tnax4os&vhead is well worth enduring. Since Squidlis alpr xy scns&v, and pr xy scns&vs tend to4require lotsloftmemtvy, ix is4good advice to provide sufficien 4memtvyawhenlusingaSquid. Justladdan little more to nccommtdaee nspan>ntlm_authesb>. n/p>ncsnccesskey="p"4href="kerberos.html">Prev < d width="20%" align="center">ncsnccesskey="u"4href="index.html">Upn/amsp d>< d width="40%" align="right"> Nextn/amsp d>ncsnccesskey="h"4href="index.html">Home< d width="40%" align="right" valign="top>n Chapxer 12. Performance, Reliability, and Availability